const express = require("express")
const router = express.Router()
const helmet = require('helmet');
const login = require("./login/login")
const doSth = require("./doSth/index")
const route = require("./route/index")
router.use(helmet({
  hidePoweredBy:true,
  noCache:true,
  frameguard:{
    action:"deny"
  },
  xssFilter:true,
  ieNoOpen:true,
  dnsPrefetchControl:true
}))
router.all("*",(req,res,next)=>{
  const auth = req.get("Content-Type")
  next()
})
router.use(login).use(doSth).use(route)
// router.use(doSth)
// router.use(route)
module.exports = router